<template>
  <li :class="['dropdown-option', { 'is-disabled': disabled }]">
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
  name: 'DropdownOption',
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  }
})
</script>

<style lang="scss">
.dropdown-option {
  -webkit-user-select: none;
  user-select: none;
  &.is-disabled {
    * {
      color: #999999;
      background: transparent;
      pointer-events: none;
    }
  }
}
</style>
